<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>My JSP 'Bankuai.jsp' starting page</title>
		<jsp:include page="../public/header-meta.jsp"></jsp:include>
		
	</head>
	<body >
<jsp:include page="../public/header.jsp"></jsp:include>
<c:if test="${user.uremark==null}">
<%
	response.sendRedirect(request.getContextPath() + "/section!listAll");
%>
</c:if>
<div id="wrap">
<div class="container" id="page-main" >
<div class="row">
<jsp:include page="Sleftbar.jsp"></jsp:include>
<div class='col-xs-12 col-sm-6 col-md-9' >

<div class='box'>
<div class='cell'>
<a href="welcome" class="startbbs1">开心吧</a> <span class="chevron">&nbsp;›&nbsp;

</span> <a href="admin!sectionList">supperAdmin管理后台</a> <span class="chevron">&nbsp;›&nbsp;
</span> 
</div>
<div class='cell'>
<%--<?php if($topics){?>
--%>
<table class='topics table' >
<thead>
<tr>

<td  align="center" class='w50'>ID</td>
<td align="center" class='auto'>版块名</td>
<td align='center' class='auto'>版主ID</td>
<td align='center' class='auto'>简介</td>
<td align='center' class='auto'>发帖量</td>
<td align='center' class='auto'>点击量</td>
<td align='center'>操作</td>
</tr>
</thead>
<tbody>
<s:iterator value="list">

<tr class='center'>
<td class='w50'>
<strong class='green'>
${sid}
</strong>
</td>
<td class='auto'>
<a href="topic!listAll?section.sid=${sid}">${sname}</a>
</td>
<td class='auto'>
<a href="user!userDetails?uid=${bbsusers.uid}" class="rabel profile_link" title="${bbsusers.uname}">${bbsusers.uname}</a>
</td>
<td align='center' class='auto'>
${sprofile}
</td>
<td align='center' class='auto'>
${stopicCount}
</td>
<td align='center' class='auto'>
<small class='fade1'>
${sclickcount}</small>
</td>
<td class='w100'>

<a href="admin!toEditUI?section.sid=${sid }"class="btn btn-primary btn-sm"  
rel="nofollow">编辑</a>
</td>
</tr>
</s:iterator>

</tbody>
</table>
<div class='form-actions'>
<input class="btn btn-primary btn-danger" name="batch_del" type="submit" value="批量删除" />
<a class="btn btn-primary" href="admin!toAddsection">添加</a>
</div>
</div>
<div align='center' class='inner'>
<div>
<ul class='pagination'>
</ul>
</div>
</div>
</div>
</div>
</div></div></div>
<jsp:include page="/public/footer.jsp"></jsp:include>
<script type="text/javascript">
$(document).ready(function(){
  $("#checkall").bind('click',function(){
  $("input:checkbox").prop("checked",$(this).prop("checked"));//全选
  });
});
</script>
</body></html>

